package cn.dzz.action;

import cn.dzz.pojo.User;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

/**
 * @author Echo42
 * @file Struts2
 * @create 2020年08月29日17:44
 */
public class ModelAction extends ActionSupport implements ModelDriven<User> {

    private User user = new User();

    public User getModel() {
        return user;
    }

    @Override
    public String execute() throws Exception {

        System.out.println(user);

        return super.execute();
    }
}
